package zerenlian;

import android.util.Log;

public class BeijingPostman extends Postman {//北京快递员
    @Override
    public void handleCourier(String address) {
        if (address.equals("Beijing")) {//北京地区的则派送
            Log.e("***"," 派送到北京 ");
            return;
        } else {//否则交给下一个快递员去处理
            Log.e("***"," 不是北京快递 交给下一个 ");
            nextPostman.handleCourier(address);
        }
    }
}